using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace CommLibrary
{
    public class ThreadItem
    {
        private Thread m_oThread;
        private ManualResetEvent m_eventStop;
        private ManualResetEvent m_eventStopped;

        public ThreadItem(Thread oThread, ManualResetEvent eventStop, ManualResetEvent eventStopped)
        { 
            this.m_oThread = oThread;
            this.m_eventStop = eventStop;
            this.m_eventStopped = eventStopped;
        }

        public void SetThread(Thread oThread)
        {
            this.m_oThread = oThread;
        }

        public Thread GetThread()
        {
            return this.m_oThread;
        }

        public void SetEventStop(ManualResetEvent eventStop)
        {
            this.m_eventStop = eventStop;
        }

        public ManualResetEvent GetEventStop()
        {
            return this.m_eventStop;
        }

        public void SetEventStopped(ManualResetEvent eventStopped)
        {
            this.m_eventStopped = eventStopped;
        }

        public ManualResetEvent GetEventStopped()
        {
            return this.m_eventStopped;
        }
    }
}
